package cn.shuangliang.contract.model;

import java.util.Date;

public class Type {
    private Long id;

    private String sidu;

    private String style;

    private Date addtime;

    private String desc;

    private Long parent;

    public Type(){}

    public Type(String sidu, String style, String desc, Long parent) {
        this.sidu = sidu;
        this.style = style;
        this.desc = desc;
        this.parent = parent;
    }

    public Type(Long id, String sidu, String style, String desc, Long parent) {
        this.id = id;
        this.sidu = sidu;
        this.style = style;
        this.desc = desc;
        this.parent = parent;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSidu() {
        return sidu;
    }

    public void setSidu(String sidu) {
        this.sidu = sidu == null ? null : sidu.trim();
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style == null ? null : style.trim();
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }
}